home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Bus / S / SALESCALC.cpt / SALESCALC / Sales Ratios / card_2901.txt < prev    next >
Text File  |  1987-12-10  |  14KB  |  621 lines

  1. -- card: 2901 from stack: in
  2. -- bmap block id: 5349
  3. -- flags: 0000
  4. -- background id: 2712
  5. -- name: Calculator
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A003
  11. -- rect: left=224 top=316 right=339 bottom=314
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: CALCULATE
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   set cursor to 4
  23.   set the numberFormat to "0."
  24.   --calculate for Annual Activity
  25.   put card field "GOAL" / card field "AVG SALE" into card field "S-A"
  26.   put card field "S-A" * card field "R:1" into card field "P-A"
  27.   put card field "P-A" * card field "R:2" into card field "A-A"
  28.   put card field "A-A" * card field "R:3" into card field "C-A"
  29.   put card field "C-A" * card field "R:4" into card field "D-A"
  30.   --calculate for Quarterly Activity
  31.   put card field "GOAL" / card field "AVG SALE" / 4 into card field "S-Q"
  32.   put card field "S-Q" * card field "R:1" into card field "P-Q"
  33.   put card field "P-Q" * card field "R:2" into card field "A-Q"
  34.   put card field "A-Q" * card field "R:3" into card field "C-Q"
  35.   put card field "C-Q" * card field "R:4" into card field "D-Q"
  36.   --calculate for Monthly Activity
  37.   put card field "GOAL" / card field "AVG SALE" / 12 into card field "S-M"
  38.   put card field "S-M" * card field "R:1" into card field "P-M"
  39.   put card field "P-M" * card field "R:2" into card field "A-M"
  40.   put card field "A-M" * card field "R:3" into card field "C-M"
  41.   put card field "C-M" * card field "R:4" into card field "D-M"
  42.   --calculate for Weekly Activity, based on a 50 week working year
  43.   set the numberFormat to "0.0"
  44.   put card field "GOAL" / card field "AVG SALE" / 50 into card field "S-W"
  45.   put card field "S-W" * card field "R:1" into card field "P-W"
  46.   put card field "P-W" * card field "R:2" into card field "A-W"
  47.   put card field "A-W" * card field "R:3" into card field "C-W"
  48.   put card field "C-W" * card field "R:4" into card field "D-W"
  49.   --calculate for Daily Activity, based on working 240 days per year
  50.   set the numberFormat to "0.00"
  51.   put card field "GOAL" / card field "AVG SALE" / 240 into card field "S-D"
  52.   put card field "S-D" * card field "R:1" into card field "P-D"
  53.   put card field "P-D" * card field "R:2" into card field "A-D"
  54.   put card field "A-D" * card field "R:3" into card field "C-D"
  55.   put card field "C-D" * card field "R:4" into card field "D-D"
  56.   play "harpsichord" tempo 180 "a es eq es f# g# a b c#5q a4s aq g#3s a b aq ew"
  57. end mouseUp
  58.  
  59.  
  60.  
  61. -- part 2 (field)
  62. -- low flags: 00
  63. -- high flags: 0004
  64. -- rect: left=214 top=83 right=104 bottom=307
  65. -- title width / last selected line: 0
  66. -- icon id / first selected line: 0 / 0
  67. -- text alignment: 65535
  68. -- font id: 3
  69. -- text size: 14
  70. -- style flags: 256
  71. -- line height: 18
  72. -- part name: GOAL
  73. ----- HyperTalk script -----
  74. on closeField
  75.   set numberFormat to "$0.00"
  76. end closeField
  77.  
  78.  
  79. -- part 3 (field)
  80. -- low flags: 00
  81. -- high flags: 0004
  82. -- rect: left=214 top=105 right=124 bottom=307
  83. -- title width / last selected line: 0
  84. -- icon id / first selected line: 0 / 0
  85. -- text alignment: 65535
  86. -- font id: 3
  87. -- text size: 14
  88. -- style flags: 256
  89. -- line height: 18
  90. -- part name: AVG SALE
  91.  
  92.  
  93. -- part 4 (field)
  94. -- low flags: 00
  95. -- high flags: 0004
  96. -- rect: left=214 top=138 right=158 bottom=258
  97. -- title width / last selected line: 0
  98. -- icon id / first selected line: 0 / 0
  99. -- text alignment: 65535
  100. -- font id: 3
  101. -- text size: 14
  102. -- style flags: 256
  103. -- line height: 18
  104. -- part name: R:1
  105.  
  106.  
  107. -- part 5 (field)
  108. -- low flags: 00
  109. -- high flags: 0004
  110. -- rect: left=214 top=160 right=180 bottom=258
  111. -- title width / last selected line: 0
  112. -- icon id / first selected line: 0 / 0
  113. -- text alignment: 65535
  114. -- font id: 3
  115. -- text size: 14
  116. -- style flags: 256
  117. -- line height: 18
  118. -- part name: R:2
  119.  
  120.  
  121. -- part 6 (field)
  122. -- low flags: 00
  123. -- high flags: 0004
  124. -- rect: left=421 top=138 right=158 bottom=465
  125. -- title width / last selected line: 0
  126. -- icon id / first selected line: 0 / 0
  127. -- text alignment: 65535
  128. -- font id: 3
  129. -- text size: 14
  130. -- style flags: 256
  131. -- line height: 18
  132. -- part name: R:3
  133.  
  134.  
  135. -- part 7 (field)
  136. -- low flags: 00
  137. -- high flags: 0004
  138. -- rect: left=421 top=160 right=180 bottom=465
  139. -- title width / last selected line: 0
  140. -- icon id / first selected line: 0 / 0
  141. -- text alignment: 65535
  142. -- font id: 3
  143. -- text size: 14
  144. -- style flags: 256
  145. -- line height: 18
  146. -- part name: R:4
  147.  
  148.  
  149. -- part 8 (field)
  150. -- low flags: 00
  151. -- high flags: 4002
  152. -- rect: left=156 top=207 right=227 bottom=214
  153. -- title width / last selected line: 0
  154. -- icon id / first selected line: 0 / 0
  155. -- text alignment: 65535
  156. -- font id: 3
  157. -- text size: 14
  158. -- style flags: 0
  159. -- line height: 18
  160. -- part name: S-A
  161.  
  162.  
  163. -- part 9 (field)
  164. -- low flags: 00
  165. -- high flags: 4002
  166. -- rect: left=156 top=226 right=246 bottom=214
  167. -- title width / last selected line: 0
  168. -- icon id / first selected line: 0 / 0
  169. -- text alignment: 65535
  170. -- font id: 3
  171. -- text size: 14
  172. -- style flags: 0
  173. -- line height: 18
  174. -- part name: P-A
  175.  
  176.  
  177. -- part 10 (field)
  178. -- low flags: 00
  179. -- high flags: 4002
  180. -- rect: left=156 top=245 right=265 bottom=214
  181. -- title width / last selected line: 0
  182. -- icon id / first selected line: 0 / 0
  183. -- text alignment: 65535
  184. -- font id: 3
  185. -- text size: 14
  186. -- style flags: 0
  187. -- line height: 18
  188. -- part name: A-A
  189.  
  190.  
  191. -- part 11 (field)
  192. -- low flags: 00
  193. -- high flags: 4002
  194. -- rect: left=156 top=264 right=284 bottom=214
  195. -- title width / last selected line: 0
  196. -- icon id / first selected line: 0 / 0
  197. -- text alignment: 65535
  198. -- font id: 3
  199. -- text size: 14
  200. -- style flags: 0
  201. -- line height: 18
  202. -- part name: C-A
  203.  
  204.  
  205. -- part 12 (field)
  206. -- low flags: 00
  207. -- high flags: 4002
  208. -- rect: left=156 top=283 right=303 bottom=214
  209. -- title width / last selected line: 0
  210. -- icon id / first selected line: 0 / 0
  211. -- text alignment: 65535
  212. -- font id: 3
  213. -- text size: 14
  214. -- style flags: 0
  215. -- line height: 18
  216. -- part name: D-A
  217.  
  218.  
  219. -- part 13 (field)
  220. -- low flags: 00
  221. -- high flags: 4002
  222. -- rect: left=275 top=207 right=227 bottom=333
  223. -- title width / last selected line: 0
  224. -- icon id / first selected line: 0 / 0
  225. -- text alignment: 65535
  226. -- font id: 3
  227. -- text size: 14
  228. -- style flags: 0
  229. -- line height: 18
  230. -- part name: S-M
  231.  
  232.  
  233. -- part 14 (field)
  234. -- low flags: 00
  235. -- high flags: 4002
  236. -- rect: left=275 top=226 right=246 bottom=333
  237. -- title width / last selected line: 0
  238. -- icon id / first selected line: 0 / 0
  239. -- text alignment: 65535
  240. -- font id: 3
  241. -- text size: 14
  242. -- style flags: 0
  243. -- line height: 18
  244. -- part name: P-M
  245.  
  246.  
  247. -- part 15 (field)
  248. -- low flags: 00
  249. -- high flags: 4002
  250. -- rect: left=275 top=245 right=265 bottom=333
  251. -- title width / last selected line: 0
  252. -- icon id / first selected line: 0 / 0
  253. -- text alignment: 65535
  254. -- font id: 3
  255. -- text size: 14
  256. -- style flags: 0
  257. -- line height: 18
  258. -- part name: A-M
  259.  
  260.  
  261. -- part 16 (field)
  262. -- low flags: 00
  263. -- high flags: 4002
  264. -- rect: left=275 top=264 right=284 bottom=333
  265. -- title width / last selected line: 0
  266. -- icon id / first selected line: 0 / 0
  267. -- text alignment: 65535
  268. -- font id: 3
  269. -- text size: 14
  270. -- style flags: 0
  271. -- line height: 18
  272. -- part name: C-M
  273.  
  274.  
  275. -- part 17 (field)
  276. -- low flags: 00
  277. -- high flags: 4002
  278. -- rect: left=275 top=283 right=303 bottom=333
  279. -- title width / last selected line: 0
  280. -- icon id / first selected line: 0 / 0
  281. -- text alignment: 65535
  282. -- font id: 3
  283. -- text size: 14
  284. -- style flags: 0
  285. -- line height: 18
  286. -- part name: D-M
  287.  
  288.  
  289. -- part 18 (field)
  290. -- low flags: 00
  291. -- high flags: 4002
  292. -- rect: left=337 top=207 right=227 bottom=395
  293. -- title width / last selected line: 0
  294. -- icon id / first selected line: 0 / 0
  295. -- text alignment: 65535
  296. -- font id: 3
  297. -- text size: 14
  298. -- style flags: 0
  299. -- line height: 18
  300. -- part name: S-W
  301.  
  302.  
  303. -- part 19 (field)
  304. -- low flags: 00
  305. -- high flags: 4002
  306. -- rect: left=337 top=226 right=246 bottom=395
  307. -- title width / last selected line: 0
  308. -- icon id / first selected line: 0 / 0
  309. -- text alignment: 65535
  310. -- font id: 3
  311. -- text size: 14
  312. -- style flags: 0
  313. -- line height: 18
  314. -- part name: P-W
  315.  
  316.  
  317. -- part 20 (field)
  318. -- low flags: 00
  319. -- high flags: 4002
  320. -- rect: left=337 top=245 right=265 bottom=395
  321. -- title width / last selected line: 0
  322. -- icon id / first selected line: 0 / 0
  323. -- text alignment: 65535
  324. -- font id: 3
  325. -- text size: 14
  326. -- style flags: 0
  327. -- line height: 18
  328. -- part name: A-W
  329.  
  330.  
  331. -- part 21 (field)
  332. -- low flags: 00
  333. -- high flags: 4002
  334. -- rect: left=337 top=264 right=284 bottom=395
  335. -- title width / last selected line: 0
  336. -- icon id / first selected line: 0 / 0
  337. -- text alignment: 65535
  338. -- font id: 3
  339. -- text size: 14
  340. -- style flags: 0
  341. -- line height: 18
  342. -- part name: C-W
  343.  
  344.  
  345. -- part 22 (field)
  346. -- low flags: 00
  347. -- high flags: 4002
  348. -- rect: left=337 top=283 right=303 bottom=395
  349. -- title width / last selected line: 0
  350. -- icon id / first selected line: 0 / 0
  351. -- text alignment: 65535
  352. -- font id: 3
  353. -- text size: 14
  354. -- style flags: 0
  355. -- line height: 18
  356. -- part name: D-W
  357.  
  358.  
  359. -- part 23 (field)
  360. -- low flags: 00
  361. -- high flags: 4002
  362. -- rect: left=399 top=207 right=227 bottom=457
  363. -- title width / last selected line: 0
  364. -- icon id / first selected line: 0 / 0
  365. -- text alignment: 65535
  366. -- font id: 3
  367. -- text size: 14
  368. -- style flags: 0
  369. -- line height: 18
  370. -- part name: S-D
  371.  
  372.  
  373. -- part 24 (field)
  374. -- low flags: 00
  375. -- high flags: 4002
  376. -- rect: left=399 top=226 right=246 bottom=457
  377. -- title width / last selected line: 0
  378. -- icon id / first selected line: 0 / 0
  379. -- text alignment: 65535
  380. -- font id: 3
  381. -- text size: 14
  382. -- style flags: 0
  383. -- line height: 18
  384. -- part name: P-D
  385.  
  386.  
  387. -- part 25 (field)
  388. -- low flags: 00
  389. -- high flags: 4002
  390. -- rect: left=399 top=245 right=265 bottom=457
  391. -- title width / last selected line: 0
  392. -- icon id / first selected line: 0 / 0
  393. -- text alignment: 65535
  394. -- font id: 3
  395. -- text size: 14
  396. -- style flags: 0
  397. -- line height: 18
  398. -- part name: A-D
  399.  
  400.  
  401. -- part 26 (field)
  402. -- low flags: 00
  403. -- high flags: 4002
  404. -- rect: left=399 top=264 right=284 bottom=457
  405. -- title width / last selected line: 0
  406. -- icon id / first selected line: 0 / 0
  407. -- text alignment: 65535
  408. -- font id: 3
  409. -- text size: 14
  410. -- style flags: 0
  411. -- line height: 18
  412. -- part name: C-D
  413.  
  414.  
  415. -- part 27 (field)
  416. -- low flags: 00
  417. -- high flags: 4002
  418. -- rect: left=399 top=283 right=303 bottom=457
  419. -- title width / last selected line: 0
  420. -- icon id / first selected line: 0 / 0
  421. -- text alignment: 65535
  422. -- font id: 3
  423. -- text size: 14
  424. -- style flags: 0
  425. -- line height: 18
  426. -- part name: D-D
  427.  
  428.  
  429. -- part 28 (field)
  430. -- low flags: 00
  431. -- high flags: 4002
  432. -- rect: left=217 top=207 right=227 bottom=272
  433. -- title width / last selected line: 0
  434. -- icon id / first selected line: 0 / 0
  435. -- text alignment: 65535
  436. -- font id: 3
  437. -- text size: 14
  438. -- style flags: 0
  439. -- line height: 18
  440. -- part name: S-Q
  441.  
  442.  
  443. -- part 29 (field)
  444. -- low flags: 00
  445. -- high flags: 4002
  446. -- rect: left=217 top=226 right=246 bottom=272
  447. -- title width / last selected line: 0
  448. -- icon id / first selected line: 0 / 0
  449. -- text alignment: 65535
  450. -- font id: 3
  451. -- text size: 14
  452. -- style flags: 0
  453. -- line height: 18
  454. -- part name: P-Q
  455.  
  456.  
  457. -- part 30 (field)
  458. -- low flags: 00
  459. -- high flags: 4002
  460. -- rect: left=217 top=245 right=265 bottom=272
  461. -- title width / last selected line: 0
  462. -- icon id / first selected line: 0 / 0
  463. -- text alignment: 65535
  464. -- font id: 3
  465. -- text size: 14
  466. -- style flags: 0
  467. -- line height: 18
  468. -- part name: A-Q
  469.  
  470.  
  471. -- part 31 (field)
  472. -- low flags: 00
  473. -- high flags: 4002
  474. -- rect: left=217 top=264 right=284 bottom=272
  475. -- title width / last selected line: 0
  476. -- icon id / first selected line: 0 / 0
  477. -- text alignment: 65535
  478. -- font id: 3
  479. -- text size: 14
  480. -- style flags: 0
  481. -- line height: 18
  482. -- part name: C-Q
  483.  
  484.  
  485. -- part 32 (field)
  486. -- low flags: 00
  487. -- high flags: 4002
  488. -- rect: left=217 top=283 right=303 bottom=272
  489. -- title width / last selected line: 0
  490. -- icon id / first selected line: 0 / 0
  491. -- text alignment: 65535
  492. -- font id: 3
  493. -- text size: 14
  494. -- style flags: 0
  495. -- line height: 18
  496. -- part name: D-Q
  497.  
  498.  
  499. -- part contents for card part 2
  500. ----- text -----
  501. 250000
  502.  
  503. -- part contents for card part 3
  504. ----- text -----
  505. 6000
  506.  
  507. -- part contents for card part 4
  508. ----- text -----
  509. 3
  510.  
  511. -- part contents for card part 5
  512. ----- text -----
  513. 1.5
  514.  
  515. -- part contents for card part 6
  516. ----- text -----
  517. 3
  518.  
  519. -- part contents for card part 7
  520. ----- text -----
  521. 6
  522.  
  523. -- part contents for card part 9
  524. ----- text -----
  525. 126
  526.  
  527. -- part contents for card part 10
  528. ----- text -----
  529. 189
  530.  
  531. -- part contents for card part 11
  532. ----- text -----
  533. 567
  534.  
  535. -- part contents for card part 12
  536. ----- text -----
  537. 3402
  538.  
  539. -- part contents for card part 13
  540. ----- text -----
  541. 3
  542.  
  543. -- part contents for card part 14
  544. ----- text -----
  545. 9
  546.  
  547. -- part contents for card part 15
  548. ----- text -----
  549. 14
  550.  
  551. -- part contents for card part 16
  552. ----- text -----
  553. 42
  554.  
  555. -- part contents for card part 17
  556. ----- text -----
  557. 252
  558.  
  559. -- part contents for card part 18
  560. ----- text -----
  561. 0.8
  562.  
  563. -- part contents for card part 19
  564. ----- text -----
  565. 2.4
  566.  
  567. -- part contents for card part 20
  568. ----- text -----
  569. 3.6
  570.  
  571. -- part contents for card part 21
  572. ----- text -----
  573. 10.8
  574.  
  575. -- part contents for card part 22
  576. ----- text -----
  577. 64.8
  578.  
  579. -- part contents for card part 23
  580. ----- text -----
  581. 0.17
  582.  
  583. -- part contents for card part 24
  584. ----- text -----
  585. 0.51
  586.  
  587. -- part contents for card part 25
  588. ----- text -----
  589. 0.77
  590.  
  591. -- part contents for card part 26
  592. ----- text -----
  593. 2.31
  594.  
  595. -- part contents for card part 27
  596. ----- text -----
  597. 13.86
  598.  
  599. -- part contents for card part 8
  600. ----- text -----
  601. 42
  602.  
  603. -- part contents for card part 28
  604. ----- text -----
  605. 10
  606.  
  607. -- part contents for card part 29
  608. ----- text -----
  609. 30
  610.  
  611. -- part contents for card part 30
  612. ----- text -----
  613. 45
  614.  
  615. -- part contents for card part 31
  616. ----- text -----
  617. 135
  618.  
  619. -- part contents for card part 32
  620. ----- text -----
  621. 810